import request from '@/utils/request'

// 查询授信账户列表
export function listCreditAccount(query) {
    return request({
        url: '/bizsys/CreditAccount/list',
        method: 'get',
        params: query
    })
}

// 查询授信账户详细
export function getCreditAccount(id) {
    return request({
        url: '/bizsys/CreditAccount/' + id,
        method: 'get'
    })
}

// 新增授信账户
export function addCreditAccount(data) {
    return request({
        url: '/bizsys/CreditAccount',
        method: 'post',
        data: data
    })
}

// 修改授信账户
export function updateCreditAccount(data) {
    return request({
        url: '/bizsys/CreditAccount',
        method: 'put',
        data: data
    })
}

// 删除授信账户
export function delCreditAccount(id) {
    return request({
        url: '/bizsys/CreditAccount/' + id,
        method: 'delete'
    })
}

// 导出授信账户
export function exportCreditAccount(query) {
    return request({
        url: '/bizsys/CreditAccount/export',
        method: 'get',
        params: query
    })
}
